package com.jh.fcsm.common.mybatis;

import com.alibaba.fastjson2.JSONObject;

public class InsertDynamicProvider {

	public String insertDynamicList(JSONObject obj) {
		String sql = obj.get("myQsql").toString();
        String[] tags = {"<where>", "<if", "<trim>", "<bind", "<choose>", "<when", "<foreach", "<set"};
        for (String tag : tags) {
            if (sql.contains(tag)) {
                return "<script>" + sql + "</script>";
            }
        }
        return sql;
	}
}
